/**
 * 
 */
package np.com.baralsujan.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import np.com.baralsujan.domain.User;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author sbara1
 *
 */
@Controller
public class HelloWorldController {
	
	
	@RequestMapping(value = {"/", "/hello"})
	public ModelAndView  hello(HttpServletRequest request, HttpSession session, Model model) {
		return new ModelAndView("hello", "hello", new User() {
			public String getName() {
				return "Tester user";
			}
		});
	}

}
